package com.itheima.advance.reflect.demo01;

public class ReflectDemo01 {

    public static void main(String[] args) throws ClassNotFoundException {

        Class<Student> studentClass = Student.class;
        System.out.println(studentClass);

        Class<Student> studentClass1 = Student.class;
        System.out.println(studentClass1);

        System.out.println(studentClass == studentClass1);
        System.out.println("------------------------------");

        Student student = new Student();
        Class<? extends Student> studentClass2 = student.getClass();
        System.out.println(studentClass2);
        System.out.println(studentClass == studentClass2);

        Class<?> studentClass3 = Class.forName("com.itheima.advance.reflect.demo01.Student");
        System.out.println(studentClass3);
        System.out.println(studentClass == studentClass3);
    }
}
